package cn.iocoder.yudao.module.vlog.comment.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.business.basic.pojo.vo.UserSimpleVO;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.vlog.comment.bo.VLogRelationBO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.module.api.infrastructure.DictTypeConstants.BOOLEAN_STRING;

@Schema(description = "视频评论 Response VO")
@Data
@ExcelIgnoreUnannotated
public class VLogCommentRespVO extends VLogRelationBO {

    @Schema(description = "唯一编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3771")
    @ExcelProperty("唯一编号")
    private Long id;

    @Schema(description = "店铺编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("店铺编号")
    private Long shopId;

    @Schema(description = "回复编号", example = "4602")
    @ExcelProperty("回复编号")
    private Long parentId;

    private UserSimpleVO user;

    @Schema(description = "回复用户编号", example = "32357")
    @ExcelProperty("回复用户编号")
    private Long toUserId;

    private UserSimpleVO toUser;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("内容")
    private String content;

    @Schema(description = "点赞数", example = "19354")
    @ExcelProperty("点赞数")
    private Long likedCount;

    @Schema(description = "是否可见", example = "false")
    @ExcelProperty(value = "是否可见", converter = DictConvert.class)
    @DictFormat(BOOLEAN_STRING)
    private Boolean visible;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
